package com.invengo.module_check.ui.fragment.widget.item;

import androidx.annotation.NonNull;

import com.invengo.library_db.entity.module_check.StructBean;
import com.invengo.module_check.ui.fragment.widget.SelectShelfViewModel;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent;

public class RoomItemViewModel extends ItemViewModel<SelectShelfViewModel> {
    public SingleLiveEvent<StructBean> roomStruce = new SingleLiveEvent<>();

    public RoomItemViewModel(@NonNull SelectShelfViewModel viewModel, StructBean room) {
        super(viewModel);
        this.roomStruce.postValue(room);
    }

    public BindingCommand checkItem = new BindingCommand(() -> {
        viewModel.roomItemClick(this);
    });
}
